<?if(!defined("PROLOG_INCLUDED") || PROLOG_INCLUDED!==true)die();?>
<?=isset($arResult["ERRORS"]) ? ShowError($arResult["ERRORS"]) : ''?>
<?if(!empty($arResult["FIELDS"])):?>
<form method="post" action="" name="add_catalog_type">
	<table class="form-table">
	<?foreach($arResult["FIELDS"] as $key => $value):?>
		<tr>
			<td class="td-left"><?=LANG('CATALOG_TYPE_'.$key)?>:</td>
			<td class="td-right"><input type="text" id="<?=$key?>" name="<?=$key?>" size="60" value="<?=$value?>"/></td>
		</tr>
	<?endforeach?>
		<tr>
			<td>&nbsp;</td>
			<td class="td-right">
				<?if ($arResult["MODE"] == "ADD"):?>
					<input type="submit" class="button" name="add_btn" value="<?=LANG('CATALOG_TYPE_ADD_TEXT')?>"/>&nbsp;
				<?else:?>
					<input type="submit" class="button" name="edit_btn" value="<?=LANG('CATALOG_TYPE_EDIT_TEXT')?>"/>&nbsp;
				<?endif?>
				<button class="button" onClick="return RedirectTo('/system/admin/catalog/')"><?=LANG('CATALOG_TYPE_CANCEL_TEXT')?></button>
			</td>
		</tr>
	</table>
</form>
<?endif?>